<h1>
    <?=$this->title;?>
</h1>
<div id="container" style="margin-top: -50px;">
    <div>
<?
    Principio_Library_Common::printErrorsAndMsg();
    switch ($this->settings_id)
    {
        case 1: // General Templates
            echo $this->render("settings/templates.phtml");
	        break;
	
	    case 2:
?>
        <table class="form_table">
            <tr>
                <td class="title">Primary DNS:</td>
                <td class="input_field"><input type="text" id="primary_dns" value="" /></td>
            </tr>
            <tr>
                <td class="title">Secondary DNS:</td>
                <td class="input_field"><input type="text" id="secondary_dns" value="" /></td>
            </tr>
            <tr>
                <td class="title">Server Order:</td>
                <td class="input_field">
                    <select id="server_order">
			            <option>bla</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="title">Query Mode:</td>
                <td class="input_field">
                    <select id="query_mode">
                    <option value="parallel">Parallel</option>
                    <option value="sequantial">Sequantial</option>
                    </select>
                </td>
            </tr>
        </table>
	    <table border="0" width="100%" class="buttons">
    	    <tr>
                <td align="right">
                    <input class="save" type="submit" name="apply" value="Apply changes" onClick=""/>
                    <input class="cancel" type="submit" name="reset" value="Reset" onClick="ajaxSettings({id: <?=$this->settings_id;?>, action: 'edit', container: 'inner', no_apply: true}); return false;"/>
                </td>
            </tr>
        </table>
<?
        break;

        case 3:
            echo $this->codecs;
            break;

        case 4: // firmwares
            echo $this->render("settings/firmwares.phtml");
            break;
    };
?>